package com.todo.reward.infrastructure.mapper;

import com.todo.reward.infrastructure.entity.po.RewardDispatchRecordPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author azhebuxing
 * @date 2025/1/21 16:19
 * @description
 */
@Mapper
public interface RewardDispatchRecordMapper {


    Boolean insertRewardDispatchRecordPO(RewardDispatchRecordPO rewardDispatchRecordPO);

    Boolean updateRewardDispatchRecordPO(RewardDispatchRecordPO rewardDispatchRecordPO);

    Boolean removeRewardDispatchRecordPOById(@Param("id") Long id);

    RewardDispatchRecordPO queryRewardDispatchRecordPOById(@Param("id") Long id);

    Boolean updateRewardDispatchRecordStatusById(@Param("id") Long id, @Param("oldStatus") int oldStatus, @Param("newStatus") int newStatus);
}
